<div class="funcarea">
	<label>参数名</label>
	<select id="searchCondition">
	<option value="deployId">发布ID</option>
	
			
			
					<option value="npcId">NPC编号</option>	
			
					<option value="campaignId">战役点编号</option>	
			
					<option value="weatherIds">天气列表</option>	
			
					<option value="roundMax">最大回合数</option>	
			
			
			
			
			
			
					<option value="attackerMax">参战人数上限</option>	
			
					<option value="defenderMax">防守人数上限</option>	
			
					<option value="areaId">战场大小</option>	
			
			
					<option value="energyCost">消耗精力点数</option>	
			
					<option value="passCount">过关胜利场数</option>	
			
					<option value="difficulty">据点难度</option>	
			
					<option value="starMax">最大星级</option>	
			
					<option value="frontBattlePointIds">前置战点列表</option>	
			
					<option value="afterBattlePointIds">后置战点列表</option>	
				</select>
	<label>参数值</label>
	<input type="text" id="searchValue"/>
	<a href="javascript:void(0)" onclick="searchbattle_point()">查询</a>
	<a href="javascript:void(0)" onclick="document.location.reload()">刷新</a>
	<a href="javascript:void(0)" onclick="promptAdd()">增加</a>
	<a href="javascript:void(0)" onclick="promptExport()">导出</a>
	<a href="javascript:void(0)" onclick="extract()">转换战斗据点数据</a>
	<a href="javascript:void(0)" onclick="publish()">发布战斗据点</a>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
<div class="dataarea">
	<table>
		<thead>
			<tr>
			<th nowrap>发布ID</th>
			
				<th nowrap>名字</th>
			
				<th nowrap>描述</th>
			
				<th nowrap>NPC编号</th>
			
				<th nowrap>战役点编号</th>
			
				<th nowrap>天气列表</th>
			
				<th nowrap>最大回合数</th>
			
				<th nowrap>首领死亡结果</th>
			
				<th nowrap>回合上限值</th>
			
				<th nowrap>首领</th>
			
				<th nowrap>回合</th>
			
				<th nowrap>结束条件</th>
			
				<th nowrap>参战人数上限</th>
			
				<th nowrap>防守人数上限</th>
			
				<th nowrap>战场大小</th>
			
				<th nowrap>掉落</th>
			
				<th nowrap>消耗精力点数</th>
			
				<th nowrap>过关胜利场数</th>
			
				<th nowrap>据点难度</th>
			
				<th nowrap>最大星级</th>
			
				<th nowrap>前置战点列表</th>
			
				<th nowrap>后置战点列表</th>
							<th nowrap class="operator">----------操作---------</th>
			</tr>
		</thead>
		<tbody>
		{% for battle_point in battle_points %}
			<tr id="row_{{ battle_point.id }}">
				<td><a href="javascript:void(0)" onclick="promptMenu({{ battle_point.id }})">{{ battle_point.deployId }}</a></td>
				
					
						<td>{{ battle_point.name }}</td>
									
					
						<td>{{ battle_point.desc }}</td>
									
					
						<td>{{ battle_point.npcId }}</td>
									
					
						<td>{{ battle_point.campaignId }}</td>
									
					
						<td>{{ battle_point.weatherIds }}</td>
									
					
						<td>{{ battle_point.roundMax }}</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 battle_point.leaderDead %}selected="selected"{% endifequal %}>无</option>
								
									<option value="1" {% ifequal 1 battle_point.leaderDead %}selected="selected"{% endifequal %}>胜利</option>
								
									<option value="2" {% ifequal 2 battle_point.leaderDead %}selected="selected"{% endifequal %}>失败</option>
								
									<option value="3" {% ifequal 3 battle_point.leaderDead %}selected="selected"{% endifequal %}>平局</option>
															</select>
						</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 battle_point.roundLimit %}selected="selected"{% endifequal %}>无</option>
								
									<option value="1" {% ifequal 1 battle_point.roundLimit %}selected="selected"{% endifequal %}>胜利</option>
								
									<option value="2" {% ifequal 2 battle_point.roundLimit %}selected="selected"{% endifequal %}>失败</option>
								
									<option value="3" {% ifequal 3 battle_point.roundLimit %}selected="selected"{% endifequal %}>平局</option>
															</select>
						</td>
									
					
						<td>{{ battle_point.leader }}</td>
									
					
						<td>{{ battle_point.round }}</td>
									
					
						<td>{{ battle_point.endCondition }}</td>
									
					
						<td>{{ battle_point.attackerMax }}</td>
									
					
						<td>{{ battle_point.defenderMax }}</td>
									
					
						<td>{{ battle_point.areaId }}</td>
									
					
						<td>{{ battle_point.drops }}</td>
									
					
						<td>{{ battle_point.energyCost }}</td>
									
					
						<td>{{ battle_point.passCount }}</td>
									
					
						<td>{{ battle_point.difficulty }}</td>
									
					
						<td>{{ battle_point.starMax }}</td>
									
					
						<td>{{ battle_point.frontBattlePointIds }}</td>
									
					
						<td>{{ battle_point.afterBattlePointIds }}</td>
													<td class="operator">
					<a href="javascript:editbattle_point({{ battle_point.id }})">编辑</a>
					<a href="javascript:removebattle_point({{ battle_point.id }})">删除</a>
					<a href="javascript:showbattle_point({{ battle_point.id }})">显示JSON</a>
				</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
